package com.choudou5.web;

import com.choudou5.bo.R;
import com.choudou5.utils.ConfigUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;


@RestController
@RequestMapping("/sys")
public class SysController extends BaseController {

    @RequestMapping("config/refresh")
    @ResponseBody
    public String ivrCallback(HttpServletRequest req){
        ConfigUtil.refresh();
    	return R.ok().toJson();
    }

}
